<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>DELETE请求</title>
	</head>
	<body>
		<h1>前后端调用-DELETE请求测试</h1>
		<script src="../js/axios.js"></script>
		<script>
			/*
				DELETE测试1：
				需求：删除ID=321的数据
			*/
		   let url = "http://localhost:8080/axios/deleteById?id=321"
		   axios.delete(url)
				.then(promise=>{
					console.log(promise.data)
				})
			
		</script>
	</body>
</html>